package com.ysy.logistics.service.sale;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ysy.common.resp.ResultData;
import com.ysy.logistics.entities.echarts.Series;
import com.ysy.logistics.entities.sale.CusOrder;
import com.ysy.logistics.entities.sale.dto.CusOrderDto;
import com.ysy.logistics.entities.sale.dto.CusOrderGoodsDto;
import com.ysy.logistics.util.PageInfo;

import java.util.List;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/4/9 22:43
 **/
public interface CusOrderService extends IService<CusOrder> {
    Page<CusOrder> listByPage(PageInfo<CusOrder> pageInfo);

    ResultData saveSupOrderDto(CusOrderDto cusOrderDto);

    List<CusOrderGoodsDto> getGoodsListByOrderId(String id);

    ResultData outBoutById(String id);

    void flushOrder();

    ResultData backOrder(String id);

    Series getTotal(List<String> dateArray);
}
